Hi, I am testing the Escalation Policy requests. While testing, I am receiving the Error in call “Create an Escalation Policy”. All the required fields are filled according to the documentation and I have also tried the call by changing the “name” field with different names but still getting the same error i.e “name cannot be empty”.
Kindly help to get out of this problem. I have also attached the screenshot of the call below and the curl.
curl --location --request POST ‘https://api.pagerduty.com/escalation_policies’ \
–header 'Authorization:
–header ‘Accept: application/vnd.pagerduty+json;version=2’ \
–header ‘Content-Type: application/json’ \
–header ‘From: email’ \
–header ‘Content-Type: application/json’ \
–data-raw '{
"escalation_policy": {
"type": "escalation_policy",
"name": "Engineering Escalation Policy",
"escalation_rules": [
{
"escalation_delay_in_minutes": 30,
"targets": [
{
"id": "*****",
"type": "Engineering"
}
]
}
],
"services": [
{
"id": "****",
"type": "service_reference"
}
],
"num_loops": 2,
"on_call_handoff_notifications": "if_has_services",
"teams": [
{
"id": "PQ9K7I8",
"type": "team_reference"
}
],
"description": "Here is the ep for the engineering team."
}
}’